<?php echo $html->script(array('jquery')); ?>
<?php
	$current_user_id = $um_id;
?>
<div class="content-box">
	<div class="box-body">
		<div class="box-header clear">
			<h2>Mẫu đánh giá điểm rèn luyện năm <?php echo $year ?></h2>
		</div>
		<div class="box-wrap clear" id="normalForm">
			<div class="columns clear bt-space15">
				<div class="col2-3">
					<?php 
						foreach ($data as $pointfield)
						{ 
						$review = $this->requestAction('point_forms/getReview/' . $year . '/' . $current_user_id . '/' . $pointfield['PointField']['id']);
							?>
						<h4><?php echo $pointfield['PointField']['name'] ?></h4>
						<input type="hidden" name="form[<?php echo $pointfield['PointField']['id'] ?>][review_id]" value = "<?php echo $review['UnionMemberReview']['id'] ?>" />
						<?php foreach ($pointfield['PointFieldDetail'] as $pfdetail) {
							
							?>	
							<div class="form-radio-item clear">
								<?php if($pfdetail['id'] != $review['UnionMemberReview']['pfd_id']) { ?>
								<input type="radio" disabled = "disabled" id="form[<?php echo $pointfield['PointField']['id'] ?>][<?php echo $pfdetail['id'] ?>]" name="form[<?php echo $pointfield['PointField']['id'] ?>][PointFieldDetail]" value="<?php echo $pfdetail['id'] ?>" class="radio fl-space required" /> <label for="form[<?php echo $pointfield['PointField']['id'] ?>][<?php echo $pfdetail['id'] ?>]" class="fl"><?php echo $pfdetail['description'] ?> (<?php echo $pfdetail['value'] ?> điểm)</label>
								<?php } else { ?>
								<input type="radio" disabled = "disabled" checked="checked" id="form[<?php echo $pointfield['PointField']['id'] ?>][<?php echo $pfdetail['id'] ?>]" name="form[<?php echo $pointfield['PointField']['id'] ?>][PointFieldDetail]" value="<?php echo $pfdetail['id'] ?>" class="radio fl-space required" /> <label for="form[<?php echo $pointfield['PointField']['id'] ?>][<?php echo $pfdetail['id'] ?>]" class="fl"><?php echo $pfdetail['description'] ?> (<?php echo $pfdetail['value'] ?> điểm)</label>
								<?php  } ?>
							</div>
							<?php } ?>
						<?php } ?>
				</div>
			</div>
			
			
		</div><!-- end of box-wrap -->
</div> <!-- end of box-body -->
</div> <!-- end of content-box -->